package com.canbot.u05.update;

import android.os.Environment;

import java.io.File;

public class ConstUtils {

        public static final String Path_SD = Environment.getExternalStorageDirectory().toString();

        /**
         * 此路径由服务器指定，客户端不能更改为其他值.
         */
        public static final String PATH_UPDATE_APK = Path_SD + File.separator + "apk/";

        /**
         * 此文件名字由服务器指定，客户端不能更改为其他值.
         */
        public static final String PATH_VERSION = Path_SD + File.separator + "ai/version.txt";

        /**
         * 判断是否需要看开机更新
         */
        public static final boolean START_UPDATE = true;

        // 网络设置
        public static final String Update_Tip = "更新提示";

        public static final String Update_Tip_Msg = "有新版本，您是否现在更新？";

        public static final String Update_NET_ERROR_TIP = "温馨提示";

        public static final String Update_NET_ERROR_MSG = "未能连接到网络，请检查网络后，再使用";

        public static final String UPDATE_LEFT_BTN_TEXT = "残忍离开";

        public static final String UPDATE_RIGHT_BTN_TEXT = "设置WIFI";

        public static String APP_DOWNLOAD_URL_PARENT = "";

        /**
         * getAllversion的访问路径
         */
        public static final String GET_ALL_VERSION_URL = APP_DOWNLOAD_URL_PARENT + "getAllVersion";

        public static final String ZIP_APP_PATH = Path_SD + "/sys_update_zip/";

        public static final String Path_Update_Apk = Path_SD + File.separator + "apk/";

        /**
         * getUpdateAppsZip的访问路径
         */
        public static final String GET_UPDATE_APPS_ZIP_URL = APP_DOWNLOAD_URL_PARENT + "getUpdateAppsZip";

        public static final int SET_NETWORK_TIMEOUT = 500;

        public static final int SET_NETWORKERROR_CONNET_COUNT = 0;

        public static final int GET_CHECKUPDATE_TO_WAKEUP = 7;

        public static final long DELAY_MILLIS_TO_WAKEUP = 1500;

}
